<template>
   <div class="header " :class="{borderpx:border!=true}">
       <span v-if="isfanhui==true" class="Return"><img src="../../img/返回按钮@2x.png" alt="" @click="fanhui"></span>
       <span class="font">{{title}}</span>
   </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  mounted() {},
  methods: {
    fanhui: function() {
      if (this.url != "") {
        this.$router.push({ name: this.url });
      }
    }
  },
  props: ["title", "isfanhui", "border",'url']
};
</script>
<style scoped lang="scss">
.borderpx {
  border-bottom: 1px solid #e5e5e5;
}
.header {
  background: #ffffff;
  width: 100%;
  height: 90px;
  position: relative;

  .Return {
    width: 40px;
    height: 90px;
    position: absolute;
    top: 23px;
    left: 40px;
    img {
      width: 28px;
      height: 48px;
    }
  }
  .font {
    line-height: 90px;
    font-size: 40px;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    font-family: "PingFangSC-Regular";
    width: 500px;
    text-align: center;
  }
}
</style>